//
//  TKIMEncryptHelper.h
//  TKIM
//
//  Created by liupm on 15/10/24.
//  Copyright © 2015年 liupm. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface TKIMEncryptHelper : NSObject
/**
 *  @Author lpm, 15-10-24 21:10:32
 *
 *  @brief  md5加密
 *
 *  @param urlStr 加密字串
 *
 *  @return
 */
+(NSString*) md5:(NSString *)str;

/**
 *  @Author lpm, 16-01-13 11:01:13
 *
 *  @brief  字符串AES加密
 *
 *  @param strSource
 *  @param key
 *
 *  @return
 */
+ (NSData*)AES256Encrypt:(NSString*)strSource withKey:(NSString*)key;


/**
 *  @Author lpm, 16-01-13 11:01:31
 *
 *  @brief  字符串AES
 *
 *  @param dataSource
 *  @param key
 *
 *  @return
 */
+ (NSString*)AES256Decrypt:(NSData*)dataSource withKey:(NSString*)key;


@end


